import java.util.Scanner;

public class Test {
    public static void main(String[] args) {

        for(int i=1;i<=100;i++){
                int j=2;
            for(j=2;j<=Math.sqrt(i);j++){
                if(i%j==0){
                    break;
                }
            }
            if(Math.sqrt(i)>j){
                System.out.println(i+" ");
            }
        }
    }

}
